
#import "TSProgressDetailController.h"
#import "TSSuggestEditContentController.h"
@implementation TSProgressDetailController


-(UIActionSheet *)createActionSheet
{
    WS(weakSelf);
    return [[UIActionSheet alloc] initWithTitle:nil delegate:weakSelf cancelButtonTitle:@"取消" destructiveButtonTitle:nil otherButtonTitles:@"查看进度",@"查看监督人",@"查看审核人",@"查看建议列表",@"提出建议", nil];
}

#pragma mark - UIActionSheetDelegate
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{
    if(buttonIndex == 0){
        [super getProgress];
    }
    else if(buttonIndex == 1){
        [super showSupervisers];
    }
    else if(buttonIndex== 2){
        [super showAuditors];
    }else if(buttonIndex==3){
        [super showSuggest];
    }else if(buttonIndex==4){
        TSSuggestEditContentController * edit_col = [[TSSuggestEditContentController alloc] init];
        edit_col.taskId = self.taskModel.tId;
        [self.navigationController pushViewController:edit_col animated:YES];
    }
}


@end
